import request from "@/utils/request";

export default {
  getPageList(pageNum, pageSize, keyword) {
    return request({
      url: `/admin/core/borrower/listPage/${pageNum}/${pageSize}`,
      method: "get",
      params: { keyword }
    });
  },

  show(id) {
    return request({
      url: `/admin/core/borrower/show/${id}`,
      method: "get"
    });
  },

  approval(borrowerApproval) {
    return request({
      url: `/admin/core/borrower/approval`,
      method: "post",
      data: borrowerApproval
    });
  }
};
